﻿using System;
using System.ComponentModel.DataAnnotations;
using WalkingTec.Mvvm.Core;

namespace HengTong.Model.Db.Hr;

/// <summary>
/// 员工家属信息
/// </summary>
public class SysPersonFamily : BasePoco
{
    [Display(Name = "员工ID", Description = "关联员工主键", GroupName = "基本信息")]
    public Guid? PersonId { get; set; }

    [Display(Name = "员工", Description = "关联的员工实体", GroupName = "基本信息")]
    public SysPerson Person { get; set; }

    [Required]
    [Display(Name = "家属姓名", Description = "家属的姓名", GroupName = "家属信息")]
    [StringLength(128)]
    public string MemberName { get; set; }

    [Display(Name = "民族", Description = "家属民族", GroupName = "家属信息")]
    public Ethnicity? Ethnicity { get; set; }

    [Display(Name = "家属出生日期", Description = "家属的出生日期", GroupName = "家属信息")]
    public DateTime? BirthDate { get; set; }

    [Display(Name = "工作单位/就读学校", Description = "家属的工作单位或就读学校", GroupName = "家属信息")]
    [StringLength(128)]
    public string WorkOrSchool { get; set; }

    [Display(Name = "职位/年级信息", Description = "家属的职位或年级信息", GroupName = "家属信息")]
    [StringLength(128)]
    public string JobOrGrade { get; set; }

    [Display(Name = "家属联系电话", Description = "家属的联系电话", GroupName = "家属信息")]
    [StringLength(11)]
    public string ContactPhone { get; set; }

    [Display(Name = "亲属关系类型", Description = "与员工的亲属关系类型", GroupName = "家属信息")]
    public RelationshipType RelationshipType { get; set; }
}